<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link href="css/style.css" rel='stylesheet' type='text/css' />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link
	href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800'
	rel='stylesheet' type='text.css' />

</head>
<body>
	<div class="main">
		<div class="header">
			<h1>登录或者创建一个新的账号</h1>
		</div>
		<p>欢迎来到，二手书交易网，您可以将您不需要的旧书发布到此网站</p>
		<form action="user_register" method="post">
			<ul class="left-form">
				<h2>注册账号:</h2>
				<li><input type="text" placeholder="用户名" name="username"
					required />
					<div class="clear"></div></li>
				<li><input type="text" placeholder="邮箱" name="email"
					required />
					<div class="clear"></div></li>
				<li><input type="password" placeholder="密码"
					name="password" required />
					<div class="clear"></div></li>
				<li><input type="password" placeholder="确认密码"
					name="password1" required />
					<div class="clear"></div></li>
				<s:property value="session.tips"></s:property>
				<input type="submit" value="注册" />
				<div class="clear"></div>
			</ul>
		</form>
		<form action="user_login" method="post">
			<ul class="right-form">
				<h3>登录:</h3>
				<div>
					<font size="2" color="red"> <s:property value="fieldErrors.tips" /></font>
					<li><input type="text" placeholder="用户名" name="username"
						required /></li>
					<li><input type="password" placeholder="密码"
						name="password" required /></li>
					<h4><a href="#">I forgot my Password？</a></h4>
					<input type="submit"  value="登录">
				</div>
				<div class="clear"></div>
			</ul>
		</form>
		<div class="clear"></div>



	</div>
	<!-----start-copyright---->
	<div class="copy-right">
		<p>
			Template by <a href="http://w3layouts.com">w3layouts</a>
		</p>
	</div>
	<!-----//end-copyright---->
	<s:debug></s:debug>

</body>
</html>